﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage/ShenBaoYBQY.master" AutoEventWireup="true" CodeFile="1-11.aspx.cs" Inherits="ybqy_1_11" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder3" Runat="Server">
    <script language="javascript" type="text/javascript" src="../kongjian/Lodop/LodopFuncs.js"></script>
    <script src="../kongjian/myjs/myjs.js" type="text/javascript"></script>
     <p>   <span style=" font-size:x-large">表1-11排污许可证情况</span> 
        <table cellpadding="0" cellspacing="0" border="1px">
            <tr>
                <td style="width: 50px; text-align: center;" class="style2" rowspan="6">
                    污<br />
                    <br />
                    水</td>
                <td style="width: 206px; text-align: center;">
                    1.污染物名称</td>
                <td style="width: 105px">
                    2.污水中污染物允许排放量（吨/年）</td>
                <td style="width: 103px">
                    3.最高允许排放浓度（毫克/升）</td>
                <td style="width: 50px; text-align: center;" class="style2" rowspan="6">
                    废<br />
                    <br />
                    气</td>
                <td style="width: 206px; text-align: center;">
                    5.气污染物名称</td>
                <td style="width: 113px">
                    6.废气中污染物允许排放量（吨/年）</td>
                <td style="width: 119px">
                    7.最高允许排放浓度（毫克/立方米）</td>
            </tr>
            <tr>
                <td style="width: 206px">
                    <asp:DropDownList ID="POLLUTE_CODE1" runat="server" Height="25px" Width="119px" 
                        ontextchanged="DropDownList1_TextChanged" AutoPostBack="True" 
                        DataSourceID="SqlDataSource1" DataTextField="NAME" DataValueField="CODE" 
                        AppendDataBoundItems="True" 
                        onselectedindexchanged="POLLUTE_CODE1_SelectedIndexChanged" 
                        oninit="POLLUTE_CODE1_Init" onprerender="POLLUTE_CODE1_PreRender">
                        <asp:ListItem></asp:ListItem>
                    </asp:DropDownList>
                </td>
                <td style="width: 105px">
                    <asp:TextBox ID="PERMIT_VALUE1" runat="server" Width="80px"  onclick="gettishi('10111101')"></asp:TextBox>
                </td>
                <td style="width: 103px">
                    <asp:TextBox ID="MAX_DENSITY1" runat="server" Width="80px" onclick="gettishi('10111102')"></asp:TextBox>
                </td>
                <td style="width: 206px">
                    <asp:DropDownList ID="POLLUTE_CODE5" runat="server" Height="25px" Width="119px" 
                        DataSourceID="SqlDataSource2" DataTextField="NAME" DataValueField="CODE" 
                        AppendDataBoundItems="True" AutoPostBack="True" 
                        onselectedindexchanged="POLLUTE_CODE1_SelectedIndexChanged" 
                        oninit="POLLUTE_CODE1_Init" onprerender="POLLUTE_CODE1_PreRender">
                        <asp:ListItem></asp:ListItem>
                    </asp:DropDownList>
                </td>
                <td style="width: 113px">
                    <asp:TextBox ID="PERMIT_VALUE5" runat="server" Width="80px" onclick="gettishi('10111103')"></asp:TextBox>
                </td>
                <td style="width: 119px">
                    <asp:TextBox ID="MAX_DENSITY5" runat="server" Width="80px" onclick="gettishi('10111104')"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td style="width: 206px">
                    <asp:DropDownList ID="POLLUTE_CODE2" runat="server" Height="25px" Width="119px" 
                        ontextchanged="DropDownList1_TextChanged" AutoPostBack="True" 
                        DataSourceID="SqlDataSource1" DataTextField="NAME" DataValueField="CODE" 
                        AppendDataBoundItems="True" 
                        onselectedindexchanged="POLLUTE_CODE1_SelectedIndexChanged" 
                        oninit="POLLUTE_CODE1_Init" onprerender="POLLUTE_CODE1_PreRender">
                        <asp:ListItem></asp:ListItem>
                    </asp:DropDownList>
                </td>
                <td style="width: 105px">
                    <asp:TextBox ID="PERMIT_VALUE2" runat="server" Width="80px" onclick="gettishi('10111101')"></asp:TextBox>
                </td>
                <td style="width: 103px">
                    <asp:TextBox ID="MAX_DENSITY2" runat="server" Width="80px" onclick="gettishi('10111102')"></asp:TextBox>
                </td>
                <td style="width: 206px">
                    <asp:DropDownList ID="POLLUTE_CODE6" runat="server" Height="25px" Width="119px" 
                        DataSourceID="SqlDataSource2" DataTextField="NAME" DataValueField="CODE" 
                        AppendDataBoundItems="True" AutoPostBack="True" 
                        onselectedindexchanged="POLLUTE_CODE1_SelectedIndexChanged" 
                        oninit="POLLUTE_CODE1_Init" onprerender="POLLUTE_CODE1_PreRender">
                        <asp:ListItem></asp:ListItem>
                    </asp:DropDownList>
                </td>
                <td style="width: 113px">
                    <asp:TextBox ID="PERMIT_VALUE6" runat="server" Width="80px" onclick="gettishi('10111103')"></asp:TextBox>
                </td>
                <td style="width: 119px">
                    <asp:TextBox ID="MAX_DENSITY6" runat="server" Width="80px" onclick="gettishi('10111104')"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td style="width: 206px">
                    <asp:DropDownList ID="POLLUTE_CODE3" runat="server" Height="25px" Width="119px" 
                        ontextchanged="DropDownList1_TextChanged" AutoPostBack="True" 
                        DataSourceID="SqlDataSource1" DataTextField="NAME" DataValueField="CODE" 
                        AppendDataBoundItems="True" 
                        onselectedindexchanged="POLLUTE_CODE1_SelectedIndexChanged" 
                        oninit="POLLUTE_CODE1_Init" onprerender="POLLUTE_CODE1_PreRender">
                        <asp:ListItem></asp:ListItem>
                    </asp:DropDownList>
                </td>
                <td style="width: 105px">
                    <asp:TextBox ID="PERMIT_VALUE3" runat="server" Width="80px" onclick="gettishi('10111101')"></asp:TextBox>
                </td>
                <td style="width: 103px">
                    <asp:TextBox ID="MAX_DENSITY3" runat="server" Width="80px" onclick="gettishi('10111102')"></asp:TextBox>
                </td>
                <td style="width: 206px">
                    <asp:DropDownList ID="POLLUTE_CODE7" runat="server" Height="25px" Width="119px" 
                        DataSourceID="SqlDataSource2" DataTextField="NAME" DataValueField="CODE" 
                        AppendDataBoundItems="True" AutoPostBack="True" 
                        onselectedindexchanged="POLLUTE_CODE1_SelectedIndexChanged" 
                        oninit="POLLUTE_CODE1_Init" onprerender="POLLUTE_CODE1_PreRender">
                        <asp:ListItem></asp:ListItem>
                    </asp:DropDownList>
                </td>
                <td style="width: 113px">
                    <asp:TextBox ID="PERMIT_VALUE7" runat="server" Width="80px" onclick="gettishi('10111103')"></asp:TextBox>
                </td>
                <td style="width: 119px">
                    <asp:TextBox ID="MAX_DENSITY7" runat="server" Width="80px" onclick="gettishi('10111104')"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td style="width: 206px">
                    <asp:DropDownList ID="POLLUTE_CODE4" runat="server" Height="25px" Width="119px" 
                        ontextchanged="DropDownList1_TextChanged" AutoPostBack="True" 
                        DataSourceID="SqlDataSource1" DataTextField="NAME" DataValueField="CODE" 
                        AppendDataBoundItems="True" 
                        onselectedindexchanged="POLLUTE_CODE1_SelectedIndexChanged" 
                        oninit="POLLUTE_CODE1_Init" onprerender="POLLUTE_CODE1_PreRender">
                        <asp:ListItem></asp:ListItem>
                    </asp:DropDownList>
                </td>
                <td style="width: 105px">
                    <asp:TextBox ID="PERMIT_VALUE4" runat="server" Width="80px" onclick="gettishi('10111101')"></asp:TextBox>
                </td>
                <td style="width: 103px">
                    <asp:TextBox ID="MAX_DENSITY4" runat="server" Width="80px" onclick="gettishi('10111102')"></asp:TextBox>
                </td>
                <td style="width: 206px">
                    <asp:DropDownList ID="POLLUTE_CODE8" runat="server" Height="25px" Width="119px" 
                        DataSourceID="SqlDataSource2" DataTextField="NAME" DataValueField="CODE" 
                        AppendDataBoundItems="True" AutoPostBack="True" 
                        onselectedindexchanged="POLLUTE_CODE1_SelectedIndexChanged" 
                        oninit="POLLUTE_CODE1_Init" onprerender="POLLUTE_CODE1_PreRender">
                        <asp:ListItem></asp:ListItem>
                    </asp:DropDownList>
                </td>
                <td style="width: 113px">
                    <asp:TextBox ID="PERMIT_VALUE8" runat="server" Width="80px" onclick="gettishi('10111103')"></asp:TextBox>
                </td>
                <td style="width: 119px">
                    <asp:TextBox ID="MAX_DENSITY8" runat="server" Width="80px" onclick="gettishi('10111104')"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td style="width: 206px">
                    4.污水允许排放量（万吨/年）</td>
                <td colspan="2">
                    <asp:TextBox ID="PERMIT_COUNTs" runat="server" Width="80px" onclick="gettishi('10111105')"></asp:TextBox>
                </td>
                <td style="width: 206px">
                    8.废气允许排放量（万标立米）</td>
                <td colspan="2">
                    <asp:TextBox ID="PERMIT_COUNTq" runat="server" Width="80px" onclick="gettishi('10111106')"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="style2" colspan="8">
                    &nbsp;</td>
            </tr>
            </table>
            <table class="style1">
                <tr>
                    <td style="width: 166px">
                        <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
                            ConnectionString="<%$ ConnectionStrings:ConnectionStringole %>" 
                            ProviderName="<%$ ConnectionStrings:ConnectionStringole.ProviderName %>" 
                            
                            SelectCommand="SELECT DISTINCT [CODE], [NAME], [BELONG_ID] FROM [CODE_POLLUTION_TABLE] WHERE (([P_TYPE] = ?) AND ([USEFLAG] = ?)) ORDER BY [NAME]">
                            <SelectParameters>
                                <asp:Parameter DefaultValue="1" Name="P_TYPE" Type="String" />
                                <asp:Parameter DefaultValue="1" Name="USEFLAG" Type="String" />
                            </SelectParameters>
                        </asp:SqlDataSource>
                        <asp:SqlDataSource ID="SqlDataSource2" runat="server" 
                            ConnectionString="<%$ ConnectionStrings:ConnectionStringole %>" 
                            ProviderName="<%$ ConnectionStrings:ConnectionStringole.ProviderName %>" 
                            SelectCommand="SELECT DISTINCT [CODE], [NAME], [BELONG_ID] FROM [CODE_POLLUTION_TABLE] WHERE (([P_TYPE] = ?) AND ([USEFLAG] = ?)) ORDER BY [NAME]">
                            <SelectParameters>
                                <asp:Parameter DefaultValue="2" Name="P_TYPE" Type="String" />
                                <asp:Parameter DefaultValue="1" Name="USEFLAG" Type="String" />
                            </SelectParameters>
                        </asp:SqlDataSource>
                    </td>
                    <td style="text-align: right; width: 296px">
                        <asp:Button ID="Button1" runat="server" Text="提交" onclick="Button1_Click" />
                    </td>
                    <td style="width: 118px">
                        <asp:Label ID="Label5" runat="server"></asp:Label>
                    </td>
                    <td>
                        <input id="Button5" onclick="PrintOneURL('print/1-11.aspx')" type="button" 
                            value="打印本页" /></td>
                </tr>
        </table>
            <br />
    </p>
       <table>
        <tr>
            <td style="width: 456px">
                <textarea id="TextArea1" name="S1" rows="3" style="width: 430px; height: 45px" 
                    readonly="readonly"></textarea>
            </td>
            <td>
                <textarea id="TextArea2" name="S2" style="width: 430px; height: 45px; font-size: xx-large;
                    color: #FF0000; font-weight: 700;" cols="20" readonly="readonly"></textarea>
            </td>
        </tr>
        <tr>
            <td style="width: 456px">
                <textarea id="TextArea3" name="S3" rows="3" style="width: 430px; height: 45px" cols="20"></textarea>
            </td>
            <td>
                <asp:TextBox ID="TextBox100" runat="server" Height="45px" TextMode="MultiLine" Width="430px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td style="width: 456px; height: 144px;">
            </td>
            <td style="height: 144px">
            </td>
        </tr>
    </table>
    <input id="Text100" style="visibility: hidden" type="text" value="<%=DisplayStr()%>"
        disabled="disabled" />
    <script type="text/javascript">
        function gettishi(str) {
            var str2 = document.getElementById("Text100").value;
            str2.replace(/\'/g, "\"");
            //取得文本框的值
            var arr = eval(str2);
            document.getElementById("TextArea1").value = '';
            document.getElementById("TextArea2").value = '';
            document.getElementById("TextArea3").value = '';


            for (var i = 0; i < arr.length; i++) {
                if (arr[i].tishiid == str) {
                    if (arr[i].ti1.length > 0) {
                        document.getElementById("TextArea1").value = arr[i].idmingcheng + "填写说明:  " + arr[i].ti1;
                    }
                    if (arr[i].ti2.length > 0) {
                        document.getElementById("TextArea2").value = arr[i].ti2;
                    }
                    if (arr[i].ti3.length > 0) {
                        document.getElementById("TextArea3").value = arr[i].idmingcheng + "填写例子:  " + arr[i].ti3;
                    }
                }
            }



        }
    </script>
</asp:Content>

